package com.winphone.zhgd.mapper;

import java.util.List;

import com.winphone.zhgd.SuperMapper;
import com.winphone.zhgd.entity.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;



/**
 * User 表数据库控制层接口
 */
public interface UserMapper extends SuperMapper<User> {

    /**
     * 自定义注入方法
     */
    @Delete("delete from user")
    int deleteAll();

    @Select("select test_id as id, name, age, test_type from user")
    List<User> selectListBySQL();

}